<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            height: 150px;
            background-color: pink;
            margin: 0 auto;
        }
        @media screen and (max-width: 767px){
            .container {
                width: 100%;
            }
        }
        @media screen and (min-width: 768px){
            .container {
                width: 750px;
            }
        }
        
        @media screen and (min-width: 992px){
            .container {
                width: 970;
            }
        }
        
        @media screen and (min-width: 1200px){
            .container {
                width: 1170;
            }
        }
    </style>
</head>
<body>
    <div class="container"></div>
</body>
</html>